<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>媒体查询(bootstarp栅格的本质)</title>
		<style type="text/css">
			@media (min-width:1201px)and (max-width:1800px){
				.d1{
					background-color: lightblue;
				}
			}
			@media (min-width:800px)and (max-width:1200px){
				.d1{
					background-color: orange;
				}
			}
			@media only screen and (min-width:400px) and ( max-width:799px) {
				.d1{
					background-color: hotpink;
				}
			}
			@media only screen and (min-width:100px) and (max-width:399px){
				.d1{
					background-color: greenyellow;
				}
			}
			.d1{
				width: 100%;
				height: 100px;
				border: 1px solid red;
			}
		</style>
	</head>
	<body>
		<div class="d1">
			
		</div>
	</body>
</html>